package phonebookcollector;

import fakeworker.FakeWorker;
import iphoneworker.IPhoneWorker;
import phonebookitem.PhoneBookItem;

public class PhoneBookCollector {
	private static IPhoneWorker worker = new FakeWorker();
	
	public static void AddItem(PhoneBookItem item)
	{
		worker.Additem(item);
	}
	
	public static PhoneBookItem [] GetAll()
	{
		return worker.GetAll();
	}
	
	public static void DeleteItem(long id)
	{
		worker.Delete(id);
	}
	
	public static PhoneBookItem EditItem(PhoneBookItem item)
	{
		return worker.EditItem(item);
	}
	
	public static PhoneBookItem GetById(long id)
	{
		return worker.GetById(id);
	}
}
